//
//  MKAPIHttpRequestSimulator.h
//  MKAPI
//  模拟http请求
//  Created by 苏尚进 on 2022/9/25.
//  Copyright © 2022 moon. All rights reserved.
//

#import "MKAPIHttpRequestBase.h"

NS_ASSUME_NONNULL_BEGIN

@interface MKAPIHttpRequestSimulator : MKAPIHttpRequestBase
@property(nonatomic,strong,nullable) NSURLResponse *simulatorResponse;
@property(nonatomic,strong,nullable) NSData *simulatorResponseData;//响应返回的数据
@property(nonatomic,strong,nullable) NSURL *simulatorResponseFile;//响应返回的下载文件路径(位于临时目录中)

@property(nonatomic,strong,nullable) NSError *simulatorError;
@property(nonatomic,assign) NSTimeInterval simulatorErrorDuration;

@property(nonatomic,assign) NSTimeInterval simulatorUploadDuration;//默认为0.5s
@property(nonatomic,assign) NSTimeInterval simulatorDownloadDuration;//默认为0.5s

@property(nonatomic,assign) NSInteger simulatorResponseStatusCode;
@property(nonatomic,strong,nullable) NSDictionary<NSString *,NSString *> *simulatorResponseAllHeaderFields;
@end

NS_ASSUME_NONNULL_END
